'use strict'
import innovationStudioList from '@/components/CustomPage/apps/widget/innovationStudio/list'
import innovationStudioFixedList from '@/components/CustomPage/apps/widget/innovationStudio/fixedList'
import {
  Area,
  Extend,
  Input,
  Link,
  Radio,
  Select,
  Slider,
  Switch,
  Color
} from '@/components/CustomPage/fields/widget'
import { DataOption } from '@/components/CustomPage/apps/map/dataops'
import { BasicOption } from '@/components/CustomPage/apps/map/basicops'
import { imgOption } from '@/components/CustomPage/apps/map/imgops'
import { cellTitleOps } from '@/components/CustomPage/apps/map/cellTitleops'
import { moreLinkOps } from '@/components/CustomPage/apps/map/moreLinkops'

export default {
  innovationStudioFixedList() {
    return {
      target: innovationStudioFixedList,
      parameter: {
        relate: false,
        mold: 'field',
        label: '创新工作室(固定数量)'
      },
      option: [
        {
          title: '基础配置',
          fields: [
            ...BasicOption(),
            /*  {
              type: Slider,
              option: {
                label: '下间距',
                name: 'paddingBottom',
                value: 0,
                max: 100,
                step: 1
              }
            },*/
            {
              type: Slider,
              option: {
                label: '左右间距',
                name: 'spacing',
                value: 0,
                max: 100,
                step: 1
              }
            },
            ...cellTitleOps(),
            ...imgOption(),
            { type: Link, option: { label: '详情地址', name: 'link' }},
            ...moreLinkOps()
          ]
        },
        ...DataOption()
      ]
    }
  },
  /**
     * 创新工作室列表
     * @constructor
     */
  innovationStudioList() {
    return {
      target: innovationStudioList,
      parameter: {
        relate: false,
        mold: 'field',
        label: '创新工作室列表'
      },
      option: [
        {
          title: '基础配置',
          fields: [
            ...BasicOption(),
            ...cellTitleOps(),
            {
              type: Slider,
              option: {
                label: '下边距',
                name: 'paddingBottom',
                value: 0,
                max: 100,
                step: 1
              }
            },
            {
              type: Slider,
              option: {
                label: '左右边距',
                name: 'spacing',
                value: 0,
                max: 100,
                step: 1
              }
            },
            ...imgOption(),
            { type: Link, option: { label: '详情地址', name: 'link' }}
          ]
        },
        ...DataOption()
      ]
    }
  }
}
